package com.android.delivery.activity.siji

import androidx.recyclerview.widget.RecyclerView
import com.android.delivery.adapter.siji.FinancialDetailsAdapter
import com.android.delivery.base.BaseListActivity

/**
 * @author: mqwang
 * @create: 2/27/21 2:08 PM
 * @Description: 资金明细
 */
class FinancialDetailsActivity : BaseListActivity<String>() {

    val sJFinancialDetailsAdapter: FinancialDetailsAdapter by lazy {
        FinancialDetailsAdapter()
    }

    override fun bindRecyclerView(recLv: RecyclerView?) {
        recLv!!.adapter = sJFinancialDetailsAdapter

    }

    override fun loadData(page: Int, pageCount: Int) {

    }

    override fun getData(): MutableList<String> {
       return sJFinancialDetailsAdapter.data
    }

    override fun bindData(isRefresh: Boolean, list: MutableList<String>?) {
        if (isRefresh) sJFinancialDetailsAdapter.setNewData(list) else sJFinancialDetailsAdapter.addData(list!!)
    }
}